<include file="../header" title="upload" />
<div class="upload">
    <div class="title">
        <h1>{:L('upload-paper')}</h1>
    </div>
    <div class="form">
        <form action="{:U('upload/paper')}" method="post" id="reg-form" enctype="multipart/form-data">
            <table>
              <tr>
                <td class="title"><label for="field-uid">{:L('id')}</label></td>
                <td><input type="text" required name="uid" id="field-uid" class="auto-width" /></td>
              </tr>
              <tr>
                <td class="title"><label for="field-passwd">{:L('passwd')}</label></td>
                <td><input type="password" required name="password" id="field-passwd" class="auto-width" /></td>
              </tr>
              <tr>
                <td class="title"><label for="field-file">{:L('paper')}</label></td>
                <td><input type="file" required id="field-file" name="paper" /></td>
              </tr>
            </table>
            <div class="btns">
                <a href="###" id="fake-submit-btn">{:L('upload')}</a>
                <input type="submit" id="real-submit-btn" value="submit" />
            </div>
        </form>
    </div>
    <div class="note">
        <h1>{:L('note')}:</h1>
        <ol>
            <li>{:L('form-note-3')}</li>
            <li>Please read "<a href="{:U('news/view', 'id=7')}" target="_blank">Preparation of the Paper</a>" and make sure your paper meets all requirement before uploading.</li>
        </ol>
    </div>
</div>
<include file="../footer" />
<script type="text/javascript">
    $('#fake-submit-btn').click(function(){
        $('#real-submit-btn').click();
    });
</script>